import provinceOptions from '@/utils/provinceOptions';
import { Cascader, Form, Input } from 'antd';
import React from 'react';

export default function AddressSelect() {
  const onChange = (value: any) => {
    console.log(value);
  };
  return (
    <>
      <Form.Item label="地址">
        <Input.Group compact>
          <Form.Item name="provinceArr">
            <Cascader
              options={provinceOptions}
              onChange={onChange}
              placeholder="选择省/市/区"
            />
          </Form.Item>
          <Form.Item name="address">
            <Input placeholder="详细地址" />
          </Form.Item>
        </Input.Group>
      </Form.Item>
    </>
  );
}
